package com.meritdata.cloud.data.service.development.model; /***********************************************************************
 * Module:  TD_DATA_API_CATEGORY.java
 * Author:  Lenovo
 * Purpose: Defines the Class TD_DATA_API_CATEGORY
 ***********************************************************************/

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;
import java.util.List;

/** 数据服务分组表 */
@Entity
@Table(name = "TD_DATA_API_CATEGORY")
public class DataApiCategory {
	/** ID:ID */
	@Id
	@GeneratedValue
	private Long id;
	/** 分组名称:NAME */
	@Column(name = "NAME")
	private String name;
	/** 创建时间:CREATE_TIME */
	@Column(name = "CREATE_TIME")
	private Date createTime;
	/** 修改时间:UPDATE_TIME */
	@Column(name = "UPDATE_TIME")
	private Date updateTime;
	/** 创建人ID:CREATOR */
	@Column(name = "CREATOR")
	private String creator;
	@Column(name = "REVISER_ID")

	@OneToMany(fetch = FetchType.LAZY)
	@JoinColumn(name="CATEGORY_ID")
	private List<DataApi> apis;

	public List<DataApi> getApis() {
		return apis;
	}

	public void setApis(List<DataApi> apis) {
		this.apis = apis;
	}

	/** 修改人ID:REVISER_ID */
	private String reviserId;
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public String getReviserId() {
		return reviserId;
	}

	public void setReviserId(String reviserId) {
		this.reviserId = reviserId;
	}
}